<?php
// +----------------------------------------------------------------------
// | title: 玩家登陆日志
// +----------------------------------------------------------------------
// | Author: join
// +----------------------------------------------------------------------
// | Date: 2016/7/25 9:39
// +----------------------------------------------------------------------

$loginTypeConfigArr = config("login_type_conf");
return [
    1 => [
        "title" => "登陆日志",
        'table_name' => ["function" => "loginData"],
        "where" => [
            'role_id' => ['name' => '玩家ID', "type" => "text", "value" => ""],
            'name' => ['name' => '角色名', "type" => "text", "value" => ""],
            'type' => ["name" => "登陆类型", "type" => "select", "values" => $loginTypeConfigArr,"value"=>-999],
            "ip" => ["name" => "登陆IP", "type" => "text", "value" => "", "alias" => "l"],
             'time' => array('name' => '时间', 'type' => 'date_time', 'values' => array('start_date' => date('Y-m-d 00:00:00'), 'end_date' => date('Y-m-d 23:59:59'))),
        ],
        "where_merge" => [],
        "export" => true,
        'show' => [
            'role_id' => '玩家ID',
            'name' => '角色名',
            'type' => ["操作", "function" => "getTypeName", "param" => ["field" => "type", "config" => "login_type_conf"]],
            'ip' => "登陆IP",
            'online_time' => "在线时间(秒)",
            'lev' => "等级",
            'fc' => '战斗力',
            'time' => ["时间", "function" => "changeDate"],
            "role_offline_time" => ["经验超出时间", "function" => "changeDate"],
            "animal_home_time" => ["灵兽超出时间", "function" => "changeDate"],
        ]
    ],
];